#ifndef IMAGE_H
#define IMAGE_H
#include "Couleur.h"

class Image {

protected:
	unsigned char *pic;		//Buffer image
	int w, h;				//resolution de l'image

public:
	Image(){}
	~Image(){}
	Image(int, int);
	void setCouleur(int , int , const Couleur &);
	Couleur getCouleur(int i, int j) { return Couleur(pic[3*w*j+3*i],pic[3*w*j+3*i+1],pic[3*w*j+3*i+2]); }
	int getW(){return w;}
	int getH(){return h;}
	unsigned char * getPic(){return pic;}

};
#endif